import {GET_CATE_NAV_LIST,GET_CATE_LIST} from '../constants';

const initdata = {};

const wzdata = (state = initdata,action)=>{
    const {type,data} = action;
    switch(type){
        case GET_CATE_NAV_LIST:
            return Object.assign({},state,{cateNavList:data});
        case GET_CATE_LIST:
            return Object.assign({},state,{cateList:data})
        default:
            return state
    }
}
export default wzdata;